package com.example.dddsample.domain.repository;

import com.example.commom.model.PageRows;
import com.example.dddsample.domain.entity.CustomerAggregate;
import com.example.dddsample.domain.vo.CustomerQueryBaseVO;

/**
 * @author: bebm
 * @date: 2022/3/29 13:42
 * @description:
 */
public interface CustomerRepository {

    /**
     *
     * @param custId
     * @return
     */
    CustomerAggregate getCustomerAggregate(String custId);

    /**
     *
     * @param customerQueryBaseVO
     * @param pageNum
     * @param pageSize
     * @return PageRows
     */
    PageRows getPageCustomerAggregate(CustomerQueryBaseVO customerQueryBaseVO, int pageNum, int pageSize);
}
